import numpy as np

# sort
a1=np.random.randint(0,10,size=(3,4))
print(a1)
b1=np.sort(a1,axis=-1)
print(b1)
c1=np.sort(a1,axis=0)
print(c1)
d1=np.argsort(a1)
print(d1)
e1=np.argsort(a1,axis=0)
print(e1)
f1=np.sort_complex(a1)
print(f1)
# search
np.argmax(a1)
np.nanargmax(a1)
np.argmin(a1)
np.nanargmin(a1)
np.nonzero(a1)
np.argwhere(a1)
np.flatnonzero(a1)
np.where(a1>2,2,4)
np.searchsorted(a1,v,side,sorter)
np.extract(a1<1,a1)
# count
np.count_nonzero(a1)
